import './js/weapp-adapter.js';
const ctx = canvas.getContext('2d');

//二维数组存储小方块中的数字
let data = [
  [0, 0, 2, 0],
  [0, 8, 0, 8],
  [0, 0, 4, 0],
  [16, 0, 0, 8]
];

import Render from './js/Render.js';
var render = new Render(ctx,data);

  //绘制背景效果
  render.drawBg();
  //绘制小方块
  render.drawSquare();
  //启用事件监听
  render.listen();
  



